package com.bw.servioce;

import com.bw.domain.Sugar;
import com.bw.domain.SugarDTO;
import com.bw.mapper.SugarMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SugarServiceImpl implements SugarService {
    @Autowired
    SugarMapper sugarMapper;

    @Override
    public double getSugarAmount() {
        return sugarMapper.getSugarAmount();
    }

    @Override
    public List<Sugar> getSugarlist1() {
        return sugarMapper.getSugarlist1();
    }

    @Override
    public List<SugarDTO> getSugarlist2() {
        return sugarMapper.getSugarlist2();
    }

    @Override
    public List<Sugar> getSugarlist3() {
        return sugarMapper.getSugarlist3();
    }
}
